<template>
    <div>
        C组件 </div>
</template>

<script setup>
import { onMounted, onUnmounted, onActivated, onDeactivated } from 'vue';


onActivated(() => {
    console.log('C激活-内存中')
})

onDeactivated(() => {
    console.log('C挂起-内存中')
})

onMounted(() => {
    console.log('C重新创建了')
})

onUnmounted(() => {
    console.log('C销毁了')
})
defineOptions({
    name: 'B'
})
</script>

<style lang="scss" scoped></style>